﻿<Window x:Class="DynamicUIFramework.Shell"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dm="clr-namespace:AvalonDock;assembly=AvalonDock"
        xmlns:duf="clr-namespace:DynamicUIFramework"
        Title="Shell"
        Width="1024"
        Height="768"
        Background="#CD252220">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Menu Grid.Row="0">
            <MenuItem Header="Designer">
                <MenuItem Name="miAdd"
                          Click="miAdd_Click"
                          Header="AddCanvasRegion" />
                <MenuItem Name="miAddExist" Header="AddExistRegion" />
                <MenuItem Name="miSave"
                          Click="miSave_Click"
                          Header="Save" />
                <MenuItem Name="miLoad"
                          Click="miLoad_Click"
                          Header="Load" />
                <MenuItem Name="miMode" Header="Mode" />

            </MenuItem>
            <MenuItem Header="Themes">
                <MenuItem Click="ChangeCustomTheme"
                          Header="MyGeneric"
                          Tag="/DynamicUIFramework;component/themes/generic.xaml" />

                <Separator />
            </MenuItem>
        </Menu>
        <dm:DockingManager Name="dm" Grid.Row="1">
            <dm:ResizingPanel>
                <dm:DocumentPane Name="main" />
            </dm:ResizingPanel>
        </dm:DockingManager>
    </Grid>
</Window>
